#include"../head/client.h"

int add_epoll(int epfd,int sockfd){
    struct epoll_event ev;
    ev.data.fd=sockfd;                                                                   
    ev.events=EPOLLIN;
    epoll_ctl(epfd,EPOLL_CTL_ADD,sockfd,&ev);
    return 0;
}


int delet_epoll(int epfd,int sockfd){
    epoll_ctl(epfd,EPOLL_CTL_DEL,sockfd,NULL);
    return 0;
}
